/**
 * Copyright (c) 2009-2011, chunquedong(YangJiandong)
 * 
 * This file is part of ChunMap project
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
 * 
 * History:
 *     2010-05-05  Jed Young  Creation
 */
package chunmap.app.bench;

import java.awt.AWTEvent;

import chunmap.app.MapCtrl;

/**
 * @author chunquedong
 * 
 */
public interface Tool {

	public void onAdd(MapCtrl context);

	public void onRemove();

	public String getId();

	public boolean isActive();
	
	public void setActive(boolean active);
	
	public boolean actionEvent(AWTEvent event, EventType type);
}